package com.cornergj.model;

public class ServiceContent implements Entity {
	
	private static final long serialVersionUID = 1L;
	
	/** 服务内容id */
	protected Integer id;
	
	/** 月薪 */
	protected Double avgSalary;
	
	/** 颜色 */
	protected String color;
	
	/** 套餐1 */
	protected Double discount1;
	
	/** 套餐1 */
	protected Double discount2;
	
	/** 套餐1 */
	protected Double discount3;
	
	/** 图片key */
	protected String imgKey;
	
	/** 图片地址 */
	protected String imgUrl;
	
	/** 是否热门 */
	protected Integer ishot;
	
	/** 服务描述 */
	protected String serviceDescribe;
	
	/** 服务名称 */
	protected String serviceName;
	
	/** 单位（月，小时） */
	protected String unit;
	
 	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	
	public Double getAvgSalary() {
		return avgSalary;
	}
	
	public void setAvgSalary(Double avgSalary) {
		this.avgSalary = avgSalary;
	}
	
	public String getColor() {
		return color;
	}
	
	public void setColor(String color) {
		this.color = color;
	}
	
	public Double getDiscount1() {
		return discount1;
	}
	
	public void setDiscount1(Double discount1) {
		this.discount1 = discount1;
	}
	
	public Double getDiscount2() {
		return discount2;
	}
	
	public void setDiscount2(Double discount2) {
		this.discount2 = discount2;
	}
	
	public Double getDiscount3() {
		return discount3;
	}
	
	public void setDiscount3(Double discount3) {
		this.discount3 = discount3;
	}
	
	public String getImgKey() {
		return imgKey;
	}
	
	public void setImgKey(String imgKey) {
		this.imgKey = imgKey;
	}
	
	public String getImgUrl() {
		return imgUrl;
	}
	
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	
	public Integer getIshot() {
		return ishot;
	}
	
	public void setIshot(Integer ishot) {
		this.ishot = ishot;
	}
	
	public String getServiceDescribe() {
		return serviceDescribe;
	}
	
	public void setServiceDescribe(String serviceDescribe) {
		this.serviceDescribe = serviceDescribe;
	}
	
	public String getServiceName() {
		return serviceName;
	}
	
	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}
	
	public String getUnit() {
		return unit;
	}
	
	public void setUnit(String unit) {
		this.unit = unit;
	}
	
 	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("id = ").append(id).append(", ");
		builder.append("avgSalary = ").append(avgSalary).append(", ");
		builder.append("color = ").append(color).append(", ");
		builder.append("discount1 = ").append(discount1).append(", ");
		builder.append("discount2 = ").append(discount2).append(", ");
		builder.append("discount3 = ").append(discount3).append(", ");
		builder.append("imgKey = ").append(imgKey).append(", ");
		builder.append("imgUrl = ").append(imgUrl).append(", ");
		builder.append("ishot = ").append(ishot).append(", ");
		builder.append("serviceDescribe = ").append(serviceDescribe).append(", ");
		builder.append("serviceName = ").append(serviceName).append(", ");
		builder.append("unit = ").append(unit);
		return builder.toString();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		ServiceContent other = (ServiceContent) obj;
		if (id == null) {
			if (other.id != null) {
				return false;
			}
		} else if (!id.equals(other.id)) {
			return false;
		}
		return true;
	}

}